method of undetermined coefficients